c program to print boundary elements of matrix